package org.ejc.persist.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class ConventionRegistrant implements Serializable {

    /** identifier field */
    private Integer registrantId;

    /** nullable persistent field */
    private String preReg;

    /** nullable persistent field */
    private Integer lengthOfStay;

    /** nullable persistent field */
    private Date registrationDate;

    /** nullable persistent field */
    private org.ejc.persist.model.Registrant registrant;

    /** persistent field */
    private org.ejc.persist.model.Convention convention;

    /** persistent field */
    private org.ejc.persist.model.AccomodationType accomodationType;

    /** persistent field */
    private org.ejc.persist.model.RegistrantType registrantType;

    /** persistent field */
    private org.ejc.persist.model.LanguageIso languageIso;
    
    /** persistent field */
    private org.ejc.persist.model.RegistrantStatusType registrantStatusType;


    /** persistent field */
    private Set conventionRegistrantHasAdditionalInfoTypeDescs;

    /** full constructor */
    public ConventionRegistrant(Integer registrantId, String preReg, org.ejc.persist.model.Registrant registrant, org.ejc.persist.model.Convention convention, org.ejc.persist.model.AccomodationType accomodationType, org.ejc.persist.model.RegistrantType registrantType, 
    		org.ejc.persist.model.LanguageIso languageIso, Set conventionRegistrantHasAdditionalInfoTypeDescs,
    		Integer lengthOfStay,Date registrationDate,RegistrantStatusType registrantStatusType
    		) {
        this.registrantId = registrantId;
        this.preReg = preReg;
        this.registrant = registrant;
        this.convention = convention;
        this.accomodationType = accomodationType;
        this.registrantType = registrantType;
        this.languageIso = languageIso;
        this.conventionRegistrantHasAdditionalInfoTypeDescs = conventionRegistrantHasAdditionalInfoTypeDescs;
        this.lengthOfStay=lengthOfStay;
        this.registrationDate=registrationDate;
        this.registrantStatusType=registrantStatusType;
    }

    /** default constructor */
    public ConventionRegistrant() {
    }

    /** minimal constructor */
    public ConventionRegistrant(Integer registrantId, org.ejc.persist.model.Convention convention, org.ejc.persist.model.AccomodationType accomodationType, org.ejc.persist.model.RegistrantType registrantType, org.ejc.persist.model.LanguageIso languageIso, Set conventionRegistrantHasAdditionalInfoTypeDescs) {
        this.registrantId = registrantId;
        this.convention = convention;
        this.accomodationType = accomodationType;
        this.registrantType = registrantType;
        this.languageIso = languageIso;
        this.conventionRegistrantHasAdditionalInfoTypeDescs = conventionRegistrantHasAdditionalInfoTypeDescs;
    }

    public Integer getRegistrantId() {
        return this.registrantId;
    }

    public void setRegistrantId(Integer registrantId) {
        this.registrantId = registrantId;
    }

    
    public org.ejc.persist.model.Registrant getRegistrant() {
        return this.registrant;
    }

    public void setRegistrant(org.ejc.persist.model.Registrant registrant) {
        this.registrant = registrant;
    }

    public org.ejc.persist.model.Convention getConvention() {
        return this.convention;
    }

    public void setConvention(org.ejc.persist.model.Convention convention) {
        this.convention = convention;
    }

    public org.ejc.persist.model.AccomodationType getAccomodationType() {
        return this.accomodationType;
    }

    public void setAccomodationType(org.ejc.persist.model.AccomodationType accomodationType) {
        this.accomodationType = accomodationType;
    }

    public org.ejc.persist.model.RegistrantType getRegistrantType() {
        return this.registrantType;
    }

    public void setRegistrantType(org.ejc.persist.model.RegistrantType registrantType) {
        this.registrantType = registrantType;
    }

    public org.ejc.persist.model.LanguageIso getLanguageIso() {
        return this.languageIso;
    }

    public void setLanguageIso(org.ejc.persist.model.LanguageIso languageIso) {
        this.languageIso = languageIso;
    }

    public Set getConventionRegistrantHasAdditionalInfoTypeDescs() {
        return this.conventionRegistrantHasAdditionalInfoTypeDescs;
    }

    public void setConventionRegistrantHasAdditionalInfoTypeDescs(Set conventionRegistrantHasAdditionalInfoTypeDescs) {
        this.conventionRegistrantHasAdditionalInfoTypeDescs = conventionRegistrantHasAdditionalInfoTypeDescs;
    }
    
    public org.ejc.persist.model.RegistrantStatusType getRegistrantStatusType() {
        return this.registrantStatusType;
    }

    public void setRegistrantStatusType(org.ejc.persist.model.RegistrantStatusType registrantStatusType) {
        this.registrantStatusType = registrantStatusType;
    }

    
    public String getPreReg() {
        return this.preReg;
    }

    public void setPreReg(String preReg) {
        this.preReg = preReg;
    }

    public Integer getLengthOfStay() {
        return this.lengthOfStay;
    }

    public void setLengthOfStay(Integer lengthOfStay) {
        this.lengthOfStay = lengthOfStay;
    }

    public Date getRegistrationDate() {
        return this.registrationDate;
    }

    public void setRegistrationDate(Date registrationDate) {
        this.registrationDate = registrationDate;
    }
    
    

    public String toString() {
        return new ToStringBuilder(this)
            .append("registrantId", getRegistrantId())
            .toString();
    }

}
